<?php

/**
 * Investigacion filter form.
 *
 * @package    sistema_estadisticas
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class InvestigacionFormFilter extends BaseInvestigacionFormFilter
{

	public function configure()
	{
		$date = getdate();
		$values = range($date['year'], $date['year'] - 10);

		$this->widgetSchema['anio'] = new sfWidgetFormChoice(array(
			'choices' => array_combine($values, $values)));

		$this->widgetSchema['estudiante_list'] = new WidgetFormAutocomplete(
			array('model' => 'Estudiante', 'action' => 'estudiante/buscar')
		);

		$this->widgetSchema['modulo'] = new sfWidgetFormChoice(
			array('choices' => Constantes::$MODULOS)
		);
	}
}
